package com.crs.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.crs.bean.RentalsDetails;
import com.crs.dao.IRentalsDetailsDao;
import com.crs.service.IRentalsDetailsService;
import com.crs.util.Page;

@Service
public class RentalsDetailsServiceImpl implements IRentalsDetailsService{

	@Autowired
	IRentalsDetailsDao dao;
	public List<RentalsDetails> getRentalsDetails(RentalsDetails rentals, Page page) {
		return dao.getRentalsDetails(rentals,page);
	}

	public int getCount(RentalsDetails rentals) {
		return dao.getCount(rentals);
	}

	public List<RentalsDetails> selectRentalsDetailsAll() {
		return dao.selectRentalsDetailsAll();
	}

}
